package com.futureCloudMOM.core.service;

import com.futureCloudMOM.core.base.service.BaseService;
import com.futureCloudMOM.core.domain.WmsInvoiceSub;

import java.math.BigDecimal;

/**
 * 【WMS_InvoiceSub】的数据库操作Service
 *
 * @author Administrator
 * @since 2023-06-07 09:14:44
 */
public interface WmsInvoiceSubService extends BaseService<WmsInvoiceSub> {

    /**
     * 业务订单表数量变更 扣除未关联数量 增加已关联数量
     * @param InvoiceMainId 业务订单主表ID
     * @param InvoiceSubId 业务订单子表ID
     * @param qty 变更数量
     */
    void deductQty(Long InvoiceMainId, Long InvoiceSubId, BigDecimal qty);


    /**
     * 业务订单表数量变更 扣除已关联数量 增加未关联数量
     * @param InvoiceMainId 源单主表ID
     * @param InvoiceSubId 源单子表ID
     * @param qty 变更数量
     */
    void backQty(Long InvoiceMainId,Long InvoiceSubId,BigDecimal qty);

}
